//
// Created by Castle on 2025/10/28.
//

#include<iostream>

using namespace std;

int main() {
    cout << endl;
    cout << "Solution 1: " << endl;

    int *pNumber1 {nullptr};
    int *pNumber2 {new int{98}};

    // Check for nullptr before use
    if (pNumber1 != nullptr) {
        cout << "*pNumber1: " << *pNumber1 << endl;
    }else {
        cout << "Invalid address" << endl;
    }







    return 0;
}